﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Mock.Service.Interface;

namespace Mock.Client {
    class Program {

        static void Main(string[] args) {
            var binding = new NetTcpBinding();
            binding.Security.Mode = SecurityMode.None;
            
            var aClient = new ChannelFactory<IService>(binding, new EndpointAddress("net.tcp://localhost:9001/Mock.Service.Interface.IService")).CreateChannel();
            var bClient = new ChannelFactory<IService>(binding, new EndpointAddress("net.tcp://localhost:9002/Mock.Service.Interface.IService")).CreateChannel();

            Console.WriteLine(aClient.GetMessage());
            Console.WriteLine(bClient.GetMessage());


            Console.Read();
        }
    }
}
